/**
 * Copyright (C), 2015-2020, XXX有限公司
 * FileName: SysLogService
 * Author:   sky
 * Date:     2020/5/10 10:05
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package cn.szh.service;

import cn.szh.dao.SysLogDao;
import cn.szh.domain.SysLog;
import cn.szh.face.ISysLogService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author sky
 * @create 2020/5/10
 * @since 1.0.0
 */
@Service
public class SysLogService implements ISysLogService {
    @Autowired
    private SysLogDao sysLogDao;
    public void save(SysLog sysLog) {
        sysLogDao.save(sysLog);
    }

    public List<SysLog> findAllBypage(Integer pageNum,Integer pageSize){
        PageHelper.startPage(pageNum,pageSize);
        List<SysLog> sysLogs = sysLogDao.findAll();
        return sysLogs;
    }
}
